<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <h1>hello ws</h1>
  <img src="http://localhost:8080/blog/assets/img/expires.cfb92641.png" alt="">
  <script>
    if (navigator.serviceWorker) {
      // navigator.serviceWorker.register('./sw.js').then(res => {
      //   console.log('注册成功')
      // }).catch(e => {
      //   console.log('注册失败')
      // })
    }
  </script>
</body>

</html>